package cn.lut;


import cn.lut.da07.SomeServiceImpl;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @user:dell
 * @date:2020年10月30 09:21
 */
public class Mytest7 {
    @Test
    public void test1(){
        String config="applicationContext.xml";
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext(config);
        SomeServiceImpl bean = (SomeServiceImpl) applicationContext.getBean("myService7");
        System.out.println("代理的方式为:"+bean.getClass().getName());
        bean.doSome("张三",55);

    }

}
